<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/page/core/common/commonvariable.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="<%=commonLib%>" />
<title>用户管理</title>
</head>
<body ng-app="qrtzJobModule" ng-controller="QrtzJobController">
	<jsp:include page="<%=widgetHeader%>" />

	<div class="lay-wrap">
		<div class="lay-left col-xs-1">
			<jsp:include page="<%=widgetLeftBar%>" />
		</div>
		<div></div>

		<jsp:include page="<%=widgetAnRightBar%>">
			<jsp:param name="module1"
				value="/WEB-INF/views/qrtz/job/qrtz_job_edit.jsp" />
		</jsp:include>

		<div class="lay-main col-xs-11">
			<div class="panel panel-default">
				<div class="panel-heading">
					<div class="row">
						<div class="col-xs-10">
							<div class="form-group com-title">定时任务管理</div>
						</div>
					</div>
				</div>
				<div class="panel-heading">
					<div class="row">
						<div class="col-xs-12">
							<form class="form-inline" role="form" method="post">
								<div class="form-group">
									<input type="text" class="form-control"
										ng-model="jobQueryForm.companyCode" placeholder="企业编号" />
								</div>
								<div class="form-group">
									<input type="text" class="form-control"
										ng-model="jobQueryForm.companyCode" placeholder="任务描述 " />
								</div>
								<div class="form-group">
								<select id="search_state" class="form-control" ng-model="jobQueryForm.triggerState" >
															<option value="-1">触发状态</option>
															<option  value="PAUSED">暂停中</option>
															<option  value="WAITING">等待中</option>
															<option  value="ACQUIRED">正常执行中</option>
															<option  value="BLOCKED">运行阻塞</option>
															<option  value="COMPLETE">运行完成</option>
															<option  value="ERROR">运行错误</option>
														</select>
								</div>
								<div class="form-group">
									<select id="Groups" ng-model="jobQueryForm.jobGroup" class="form-control">
									<option value="-1">任务分组</option>
										<option ng-repeat="x in jobGroupName" value="{{x.jobGroup}}">{{x.jobGroup}}</option>
									</select>
								</div>
								<a href="javascript:void(0);" ng-click="doquery();"
									class="btn btn-default com-margin-left30">查询</a> <a
									href="javascript:void(0);" ng-click="goAdd();"
									class="btn btn-default com-margin-left30">新增</a>
							</form>
						</div>
					</div>
				</div>
				<div class="panel-body">
					<div class="row">
						<!-- 右边模块权限 表格-->
						<div class="col-md-12">

							<table class="table">
								<thead>
									<tr>
										<th style="width: 4%;">序号</th>
										<th style="width: 10%;">状态</th>
										<th style="width: 10%;">任务名称</th>
										<th style="width: 10%;">分组</th>
										<th style="width: 10%;">任务描述</th>
										<th style="width: 10%;">表达式</th>
										<th style="width: 10%;">开始时间</th>
										<th style="width: 10%;">结束时间</th>
										<th style="width: 10%;">上次运行时间</th>
										<th style="width: 10%;">下次运行时间</th>
										<th style="width: 10%;">操作</th>
									</tr>
								</thead>
								<tbody>
									<tr ng-repeat="o in resultList">
										<td ng-bind="$index + 1"></td>
										<td ng-bind="o.triggerState"></td>
										<td ng-bind="o.jobName"></td>
										<td ng-bind="o.jobGroup"></td>
										<td ng-bind="o.description"></td>
										<td ng-bind="o.cronExpression"></td>
										<td ng-bind="o.startTime"></td>
										<td ng-bind="o.endTime"></td>
										<td ng-bind="o.prevFireTime"></td>
										<td ng-bind="o.nextFireTime"></td>
										<td><a href="javascript:void(0)" title="启动任务"
											ng-click="showStartJobWin($index);"
											class="com-btn-icon glyphicon glyphicon-edit"></a> <a
											href="javascript:void(0)" title="暂停任务"
											ng-click="showBreakJobWin($index);"
											class="com-btn-icon glyphicon glyphicon-remove"></a> <a
											href="javascript:void(0)" title="删除任务"
											ng-click="showDeleteWin($index);"
											class="com-btn-icon glyphicon glyphicon-edit"></a> <a
											href="javascript:void(0)" title="立即执行任务"
											ng-click="showExecJobWin($index);"
											class="com-btn-icon glyphicon glyphicon-remove"></a></td>
									</tr>
								</tbody>
							</table>
							<form class="form-inline" role="form" method="post">

								<jsp:include page="<%=widgetAnPagition%>"></jsp:include>
							</form>

						</div>

					</div>
				</div>
			</div>
		</div>
		<jsp:include page="<%=widgetFooter%>" />
		<!-- content end -->
	</div>

	<!-- 删除固定资产确认操作Modal -->
	<div class="modal fade" id="confirm_del_asset_div" tabindex="-1"
		role="dialog">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title" id="confirm_del_data_label">提示</h4>
				</div>
				<div class="modal-body">
					<span>{{operatelabel}}？</span>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="button" data-dismiss="modal" class="btn btn-primary"
						ng-click="doOperate()">继续</button>
				</div>
			</div>
		</div>
	</div>

	<script type="text/javascript"
		src="<%=pagePath%>/js/moudles/qrtz/job/qrtz_job.js"></script>

	<script type="text/javascript"
		src="<%=pagePath%>/js/common/aninnerpagination.js"></script>
		
			<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/media/css/datetimepicker.css" />

	<script type="text/javascript" src="<%=request.getContextPath()%>/media/js/bootstrap-datetimepicker.js"></script>
</body>
</html>

